import Validator from "./Validator";
class FormValidator {
    constructor(form) {
        this.form = form;
    }
    mobile(rule, value, callback) {
        const v = value.replace(/ /g, '');
        console.log(this);
        if (Validator.validator(v, Validator.phoneReg)) {
            callback();
        }
        else {
            callback('手机号不合法');
        }
    }
}
export default FormValidator;
